package com.stark.commons.spring.core.support.jta;

import javax.transaction.TransactionManager;
import javax.transaction.UserTransaction;

import org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform;

/**
 * 基于 atomikos 实现的 jta 。
 * @author Ben
 * @since 1.0.0
 * @version 1.0.0
 */
public class AtomikosJtaPlatform extends AbstractJtaPlatform {

	private static final long serialVersionUID = -5159685937457322107L;

	public static TransactionManager transactionManager;
	public static UserTransaction transaction;

	@Override
	protected TransactionManager locateTransactionManager() {
		return transactionManager;
	}

	@Override
	protected UserTransaction locateUserTransaction() {
		return transaction;
	}

}
